package com.actor;

import com.actor.Actor;
import com.actor.ActorRef;

/**
 * @author sad
 */
public class MessageWrapper {
    private Actor receiver;
    private Object value;
    private ActorRef sender;

    public MessageWrapper(Object value, ActorRef sender) {
        this.value = value;
        this.sender = sender;
    }

    public Actor getReceiver() {
        return receiver;
    }

    public void setReceiver(Actor receiver) {
        this.receiver = receiver;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public ActorRef getSender() {
        return sender;
    }

    public void setSender(ActorRef sender) {
        this.sender = sender;
    }

}
